P and NP

Sets for decision problems.

Definition

Reduction

Problem A can be transformed to problem B in polynomial time. So A's solver is in polynomial time if B's solver is also in polynomial time.

Since the solver chain is one-directional, we then know that A is no harder than B, or, B is at least as hard as A.

Why NP-completeness is SO important?

All NP-complete problems can be transformed into each other.

If there is a polynomial time solver for one NP-complete problem, then it can be used for all other problems.

This problem is known as: P = NP? (Does there exist a polynomial time solver for a NP-complete problem?)

Optimization Problem

A special type of decision problem.

If Your Problem is NP-hard

by Jon